// 测试 express 是否能够正常启动

var app = require('express')();

const port = require('../config').port;

app.get('*', (req, res) => {
    console.log(`get request: ${req.originalUrl} from ${req.hostname}`);
    res.send(`get request: ${req.originalUrl} from ${req.hostname}`);
});

app.listen(port, (err) => {
    if (err) return console.log(err);
    console.log(`server start listening port: ${port}`);
});